import { Component, ViewChild } from "@angular/core";
import { NavComponent } from "./page/my-index/nav/nav.component";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"]
})
export class AppComponent {
  @ViewChild("nav")
  // nav: NavComponent;
  title = "myttc";
  formActive = false;
  sidelist = [
    { src: 'https://static.runoob.com/images/mix/img_fjords_wide.jpg', url: '' },

    { src: 'https://static.runoob.com/images/mix/img_mountains_wide.jpg', url: '' }
  ];
  adlist = [
    { src: '//cdn2.jianshu.io/assets/web/banner-s-club-aa8bdf19f8cf729a759da42e4a96f366.png', url: '' },
    { src: '//cdn2.jianshu.io/assets/web/banner-s-7-1a0222c91694a1f38e610be4bf9669be.png', url: '#' },
    { src: '//cdn2.jianshu.io/assets/web/banner-s-5-4ba25cf5041931a0ed2062828b4064cb.png', url: '#' },
    { src: '//cdn2.jianshu.io/assets/web/banner-s-club-aa8bdf19f8cf729a759da42e4a96f366.png', url: '#' }
  ];
  notelist = [{
    url: '',
    imagepath: '//upload-images.jianshu.io/upload_images/1202579-80ec8c5ac1046cc9?imageMogr2/auto-orient/strip|imageView2/1/w/360/h/240',
    title: '朋友圈里的“伪洒脱”，正在毁掉中国年轻人',
    content: '01 过去的一年里，你过得还好吗？有多少人是在朋友圈一边晒着幸福，一边过得猫狗不如？淘宝曾经公布了年终盘点TOP40的宝贝，Ins拍照道具入...',
    hot:'52.8',
    auth:'精读君',
    words :'49', laud:'800',money:'1'
  }]
  clickNav() {
    //this.nav.formActive = false;
  }
  c(value) {
    this.formActive = value;
    console.log(this.formActive);

  }
}
